package redis;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 放入缓存/读取缓存
 *
 * @author zhanglinfeng
 * @date create in 2022/8/31 11:17
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisRead {

	/** 缓存key */
	String cacheKey();

	/** 参数索引 */
	int[] cacheIndex();
	
	/** 缓存失效时间(毫秒)*/
	long cacheExpire();

}
